//
//  TimeModel.m
//  autostainer
//
//  Created by lurenjia on 2017/6/8.
//  Copyright © 2017年 walker. All rights reserved.
//

#import "PickResultModel.h"

@interface PickResultModel ()
@property (assign, nonatomic) CGFloat time;

@end
@implementation PickResultModel
- (void)setHour:(CGFloat)hour {
    _hour = hour;
    _time += hour * 60.0 * 60.0;
}
- (void)setMinute:(CGFloat)minute {
    _minute = minute;
    _time += minute * 60.0;
}
- (void)setSecond:(CGFloat)second {
    _second = second;
    _time += second;
}

- (NSInteger)allTime {
    return _time;
}

@end
